#include <iostream>
#include "Storage.h"
#include "SymTable.h"
#include "SymEntry.h"

using namespace std;

int main() {
	try {
		cout << "Test started" << endl;

		size_t nsize = 20;
		SymEntry* sym;
		sym = new SymEntry[nsize];
		memset(sym, 0, 20);

		// cout << sym[2].isLast << endl;
		cout << "before for loop" << endl;
		for (size_t i = 0; i < nsize; i++) {
			cout << "inside for loop" << endl;
			if ( &sym[i] != 0) {
				cout << "error!" << i << endl;
			}
		}
	} catch (exception& e) {
		cout << e.what() << endl;
	}
	
	cout << "Test finished" << endl;

	return 0;
}
